{extend name='layout' /}

{block name='title'}
分类 {$categorySlug} 下的文章 | Sinalma博客
{/block}

{block name="subtitle"}
{$categoryName}
{/block}
{block name="subtitleslug"}category{/block}

{block name='content'}
<script type="text/javascript">
    // ajax 实现无刷新分页
    function showpage(url){
        var xhr = new XMLHttpRequest();
        xhr.onreadystatechange = function (){
            if(xhr.readyState == 4){
                $main_con = document.getElementById('main-container');
                loadSuccess();
                // $("#main-container").empty();
                // $("#main-container").innerHTML = xhr.responseText;
                $main_con.innerHTML = xhr.responseText;
            }
        }
        xhr.open('get',url,true);
        xhr.send(null);
    }
    $(function(){$("#main-container").empty();
        showpage("__HTP____URL__/index/Index/getCategoryArticles/slug/{$categorySlug}");
    });
</script>
{/block}